package com.agileai.crm.module.procustomer.handler;

import com.agileai.crm.module.procustomer.service.ProcustVisitManage;
import com.agileai.domain.DataParam;
import com.agileai.hotweb.controller.core.StandardListHandler;
import com.agileai.hotweb.domain.FormSelectFactory;

public class ProcustVisitManageListHandler
        extends StandardListHandler {
    public ProcustVisitManageListHandler() {
        super();
        this.editHandlerClazz = ProcustVisitManageEditHandler.class;
        this.serviceId = buildServiceId(ProcustVisitManage.class);
    }

    protected void processPageAttributes(DataParam param) {
        initMappingItem("PROCUST_VISIT_EFFECT",
                        FormSelectFactory.create("VISIT_EFFECT").getContent());
        initMappingItem("PROCUST_VISIT_TYPE",
                FormSelectFactory.create("VISIT_TYPE").getContent());
        initMappingItem("CUST_VISIT_CATEGORY",
                FormSelectFactory.create("CUST_VISIT_CATEGORY").getContent());        
    }

    protected void initParameters(DataParam param) {
    }

    protected ProcustVisitManage getService() {
        return (ProcustVisitManage) this.lookupService(this.getServiceId());
    }
}
